import { HttpException } from '@exceptions/http.exception';

// 内置字典不允许删除
export class DictNotAllowedToDeleteException extends HttpException {
  constructor(message: string = '内置字典不允许删除') {
    super(503, message);
  }
}

// 内置字典不允许删除
export class DictNotFoundException extends HttpException {
  constructor(message: string = '字典不存在') {
    super(503, message);
  }
}

// 内置字典不允许更新
export class DictNotAllowedToUpdateException extends HttpException {
  constructor(message: string = '内置字典不允许更新') {
    super(503, message);
  }
}

// 内置字典不允许更新
export class DictNotAllowedToCreateException extends HttpException {
  constructor(message: string = '字典已存在') {
    super(503, message);
  }
}
